<?php

namespace app\admin\validate\pickup;

use think\Validate;

class Point extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'id' => 'require',
        'shop_name' => 'require',
        'mobile' => 'require',
        'address' => 'require',
        'longitude' => 'require',
        'latitude' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'id.require' => '请填写ID',
        'shop_name.require' => '请填写名称',
        'mobile.require' => '请填写手机号',
        'address.require' => '请填写省',
        'longitude.require' => '请填写经度',
        'latitude.require' => '请填写纬度',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add' => ['shop_name', 'address','mobile', 'longitude', 'latitude'],
        'edit' => ['id','shop_name', 'address','mobile', 'longitude', 'latitude'],
    ];
    
}
